POV-Ray : Newsgroups : povray.beta-test : Rainbow insert menu item inserts text that doesn't parse. : Rainbow insert menu item inserts text that doesn't parse. Server Time
5 Nov 2024 07:16:32 EST (-0500)
  Rainbow insert menu item inserts text that doesn't parse.  
From: David Buck
Date: 5 Sep 2001 22:11:50
Message: <3B96DB93.2AF6EF28@simberon.com>
If you try to use the "Insert/Special Effects/Rainbow" menu item, it
inserts:


// create a rainbow arc
rainbow {
  angle 25 // degrees
  width 4 // degrees
  distance 1.0e7
  direction <0,-0.5,1>
  jitter 0.01
  arc_angle 180 // degrees
  falloff_angle 60 // degrees
// up <UP>
  colour_map {
    [0.000  colour colour red 1.0 green 0.5 blue 1.0 filter 1.0]
    [0.100  colour colour red 1.0 green 0.5 blue 1.0 filter 0.8]
    [0.214  colour colour red 0.5 green 0.5 blue 1.0 filter 0.8]
    [0.328  colour colour red 0.2 green 0.2 blue 1.0 filter 0.8]
    [0.442  colour colour red 0.2 green 1.0 blue 1.0 filter 0.8]
    [0.556  colour colour red 0.2 green 1.0 blue 0.2 filter 0.8]
    [0.670  colour colour red 1.0 green 1.0 blue 0.2 filter 0.8]
    [0.784  colour colour red 1.0 green 0.5 blue 0.2 filter 0.8]
    [0.900  colour colour red 1.0 green 0.2 blue 0.2 filter 0.8]
  }
}

Which doesn't parse because of the repeated word "colour".

David Buck

PS.  It looks really nice - congratulations.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.